/**
 * page预加载类
 */

export default class Navigator {
  static init(target) {
    console.log("Navigator init name:", target.constructor.name)
    target.clazzName = target.constructor.name;
  }

  static pages = {};

  static putPage(path, value) {
    this.pages[path] = value;
  }

  static getPage(path) {
    return this.pages[path];
  }

  static removePage(path) {
    delete this.pages[path];
  }
}